/* 匹配结果页面专用样式 */

.summary-panel {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.summary-panel h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.stat-card h4 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.allocation-map {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    height: 400px;
}

.allocation-map h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#map-container {
    height: 350px;
    background-color: #f8f9fa;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.allocation-table {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.allocation-table h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#shipments-table {
    width: 100%;
    border-collapse: collapse;
}

#shipments-table th,
#shipments-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#shipments-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

#shipments-table tbody tr:hover {
    background-color: #f5f5f5;
}

.route-utilization {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.route-utilization h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#utilization-chart {
    height: 300px;
    background-color: #f8f9fa;
    border-radius: 4px;
    position: relative;
}

.utilization-chart {
    width: 100%;
    height: 100%;
}

/* 图表柱状图样式 */
.utilization-chart .bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.utilization-chart .bar-value {
    font-size: 10px;
    text-align: center;
    margin-bottom: 5px;
}

.utilization-chart .bar {
    width: 40px;
    background-color: #3498db;
    margin-bottom: 5px;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s;
}

.utilization-chart .bar-label {
    font-size: 12px;
    text-align: center;
}

/* 地图节点和连接线样式 */
.allocation-map .node {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.allocation-map .link {
    position: absolute;
    height: 2px;
    background-color: #3498db;
    transform-origin: 0 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h4 {
        font-size: 0.8rem;
    }
    
    .stat-card p {
        font-size: 1.2rem;
    }
    
    .allocation-map,
    .route-utilization {
        height: 300px;
    }
}